﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ElGee.Google.Charts;

namespace WebApp.AreaChartSample
{
    public partial class _3_CustomControlAsync : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            // Find the Construction of the Options in /Data/AreaChartData
            AreaChart chart = AreaChartData.GetOptions();

            // Rendering for Line Chart control is handled by a Skin available in /App_Themes/Default/Skins.skin

            // This control is using an external datasource to speed up the initial rendering
            asynchAreaChart.DataSourceAddress = new Uri("http://localhost:1488/AreaChartSample/DataSource.ashx");
            asynchAreaChart.Chart = chart;
        }
    }
}